using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class ModBottleContact : GeneratedMessageLite<ModBottleContact, ModBottleContact.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<ModBottleContact, ModBottleContact.Builder>
		{
			private bool resultIsReadOnly;
			private ModBottleContact result;
			protected override ModBottleContact.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override ModBottleContact MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override ModBottleContact DefaultInstanceForType
			{
				get
				{
					return ModBottleContact.DefaultInstance;
				}
			}
			public string UserName
			{
				get
				{
					return this.result.UserName;
				}
				set
				{
					this.SetUserName(value);
				}
			}
			public uint Type
			{
				get
				{
					return this.result.Type;
				}
				set
				{
					this.SetType(value);
				}
			}
			public uint Sex
			{
				get
				{
					return this.result.Sex;
				}
				set
				{
					this.SetSex(value);
				}
			}
			public string City
			{
				get
				{
					return this.result.City;
				}
				set
				{
					this.SetCity(value);
				}
			}
			public string Province
			{
				get
				{
					return this.result.Province;
				}
				set
				{
					this.SetProvince(value);
				}
			}
			public string Signature
			{
				get
				{
					return this.result.Signature;
				}
				set
				{
					this.SetSignature(value);
				}
			}
			public uint ImgFlag
			{
				get
				{
					return this.result.ImgFlag;
				}
				set
				{
					this.SetImgFlag(value);
				}
			}
			public uint HDImgFlag
			{
				get
				{
					return this.result.HDImgFlag;
				}
				set
				{
					this.SetHDImgFlag(value);
				}
			}
			public string Country
			{
				get
				{
					return this.result.Country;
				}
				set
				{
					this.SetCountry(value);
				}
			}
			public Builder()
			{
				this.result = ModBottleContact.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(ModBottleContact cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private ModBottleContact PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					ModBottleContact other = this.result;
					this.result = new ModBottleContact();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override ModBottleContact.Builder Clear()
			{
				this.result = ModBottleContact.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override ModBottleContact.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new ModBottleContact.Builder(this.result);
				}
				return new ModBottleContact.Builder().MergeFrom(this.result);
			}
			public override ModBottleContact BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override ModBottleContact.Builder MergeFrom(IMessageLite other)
			{
				if (other is ModBottleContact)
				{
					return this.MergeFrom((ModBottleContact)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override ModBottleContact.Builder MergeFrom(ModBottleContact other)
			{
				return this;
			}
			public override ModBottleContact.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override ModBottleContact.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(ModBottleContact._modBottleContactFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = ModBottleContact._modBottleContactFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 34u)
					{
						if (num3 <= 10u)
						{
							if (num3 == 0u)
							{
								throw InvalidProtocolBufferException.InvalidTag();
							}
							if (num3 == 10u)
							{
								this.result.hasUserName = input.ReadString(ref this.result.userName_);
								continue;
							}
						}
						else
						{
							if (num3 == 16u)
							{
								this.result.hasType = input.ReadUInt32(ref this.result.type_);
								continue;
							}
							if (num3 == 24u)
							{
								this.result.hasSex = input.ReadUInt32(ref this.result.sex_);
								continue;
							}
							if (num3 == 34u)
							{
								this.result.hasCity = input.ReadString(ref this.result.city_);
								continue;
							}
						}
					}
					else
					{
						if (num3 <= 50u)
						{
							if (num3 == 42u)
							{
								this.result.hasProvince = input.ReadString(ref this.result.province_);
								continue;
							}
							if (num3 == 50u)
							{
								this.result.hasSignature = input.ReadString(ref this.result.signature_);
								continue;
							}
						}
						else
						{
							if (num3 == 56u)
							{
								this.result.hasImgFlag = input.ReadUInt32(ref this.result.imgFlag_);
								continue;
							}
							if (num3 == 64u)
							{
								this.result.hasHDImgFlag = input.ReadUInt32(ref this.result.hDImgFlag_);
								continue;
							}
							if (num3 == 74u)
							{
								this.result.hasCountry = input.ReadString(ref this.result.country_);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public ModBottleContact.Builder SetUserName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasUserName = true;
				this.result.userName_ = value;
				return this;
			}
			public ModBottleContact.Builder ClearUserName()
			{
				this.PrepareBuilder();
				this.result.hasUserName = false;
				this.result.userName_ = "";
				return this;
			}
			public ModBottleContact.Builder SetType(uint value)
			{
				this.PrepareBuilder();
				this.result.hasType = true;
				this.result.type_ = value;
				return this;
			}
			public ModBottleContact.Builder ClearType()
			{
				this.PrepareBuilder();
				this.result.hasType = false;
				this.result.type_ = 0u;
				return this;
			}
			public ModBottleContact.Builder SetSex(uint value)
			{
				this.PrepareBuilder();
				this.result.hasSex = true;
				this.result.sex_ = value;
				return this;
			}
			public ModBottleContact.Builder ClearSex()
			{
				this.PrepareBuilder();
				this.result.hasSex = false;
				this.result.sex_ = 0u;
				return this;
			}
			public ModBottleContact.Builder SetCity(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasCity = true;
				this.result.city_ = value;
				return this;
			}
			public ModBottleContact.Builder ClearCity()
			{
				this.PrepareBuilder();
				this.result.hasCity = false;
				this.result.city_ = "";
				return this;
			}
			public ModBottleContact.Builder SetProvince(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasProvince = true;
				this.result.province_ = value;
				return this;
			}
			public ModBottleContact.Builder ClearProvince()
			{
				this.PrepareBuilder();
				this.result.hasProvince = false;
				this.result.province_ = "";
				return this;
			}
			public ModBottleContact.Builder SetSignature(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasSignature = true;
				this.result.signature_ = value;
				return this;
			}
			public ModBottleContact.Builder ClearSignature()
			{
				this.PrepareBuilder();
				this.result.hasSignature = false;
				this.result.signature_ = "";
				return this;
			}
			public ModBottleContact.Builder SetImgFlag(uint value)
			{
				this.PrepareBuilder();
				this.result.hasImgFlag = true;
				this.result.imgFlag_ = value;
				return this;
			}
			public ModBottleContact.Builder ClearImgFlag()
			{
				this.PrepareBuilder();
				this.result.hasImgFlag = false;
				this.result.imgFlag_ = 0u;
				return this;
			}
			public ModBottleContact.Builder SetHDImgFlag(uint value)
			{
				this.PrepareBuilder();
				this.result.hasHDImgFlag = true;
				this.result.hDImgFlag_ = value;
				return this;
			}
			public ModBottleContact.Builder ClearHDImgFlag()
			{
				this.PrepareBuilder();
				this.result.hasHDImgFlag = false;
				this.result.hDImgFlag_ = 0u;
				return this;
			}
			public ModBottleContact.Builder SetCountry(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasCountry = true;
				this.result.country_ = value;
				return this;
			}
			public ModBottleContact.Builder ClearCountry()
			{
				this.PrepareBuilder();
				this.result.hasCountry = false;
				this.result.country_ = "";
				return this;
			}
		}
		public const int UserNameFieldNumber = 1;
		public const int TypeFieldNumber = 2;
		public const int SexFieldNumber = 3;
		public const int CityFieldNumber = 4;
		public const int ProvinceFieldNumber = 5;
		public const int SignatureFieldNumber = 6;
		public const int ImgFlagFieldNumber = 7;
		public const int HDImgFlagFieldNumber = 8;
		public const int CountryFieldNumber = 9;
		private static readonly ModBottleContact defaultInstance;
		private static readonly string[] _modBottleContactFieldNames;
		private static readonly uint[] _modBottleContactFieldTags;
		private bool hasUserName;
		private string userName_ = "";
		private bool hasType;
		private uint type_;
		private bool hasSex;
		private uint sex_;
		private bool hasCity;
		private string city_ = "";
		private bool hasProvince;
		private string province_ = "";
		private bool hasSignature;
		private string signature_ = "";
		private bool hasImgFlag;
		private uint imgFlag_;
		private bool hasHDImgFlag;
		private uint hDImgFlag_;
		private bool hasCountry;
		private string country_ = "";
		private int memoizedSerializedSize = -1;
		public static ModBottleContact DefaultInstance
		{
			get
			{
				return ModBottleContact.defaultInstance;
			}
		}
		public override ModBottleContact DefaultInstanceForType
		{
			get
			{
				return ModBottleContact.DefaultInstance;
			}
		}
		protected override ModBottleContact ThisMessage
		{
			get
			{
				return this;
			}
		}
		public string UserName
		{
			get
			{
				return this.userName_;
			}
		}
		public uint Type
		{
			get
			{
				return this.type_;
			}
		}
		public uint Sex
		{
			get
			{
				return this.sex_;
			}
		}
		public string City
		{
			get
			{
				return this.city_;
			}
		}
		public string Province
		{
			get
			{
				return this.province_;
			}
		}
		public string Signature
		{
			get
			{
				return this.signature_;
			}
		}
		public uint ImgFlag
		{
			get
			{
				return this.imgFlag_;
			}
		}
		public uint HDImgFlag
		{
			get
			{
				return this.hDImgFlag_;
			}
		}
		public string Country
		{
			get
			{
				return this.country_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasType && this.hasSex && this.hasImgFlag && this.hasHDImgFlag;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasUserName)
				{
					num += CodedOutputStream.ComputeStringSize(1, this.UserName);
				}
				if (this.hasType)
				{
					num += CodedOutputStream.ComputeUInt32Size(2, this.Type);
				}
				if (this.hasSex)
				{
					num += CodedOutputStream.ComputeUInt32Size(3, this.Sex);
				}
				if (this.hasCity)
				{
					num += CodedOutputStream.ComputeStringSize(4, this.City);
				}
				if (this.hasProvince)
				{
					num += CodedOutputStream.ComputeStringSize(5, this.Province);
				}
				if (this.hasSignature)
				{
					num += CodedOutputStream.ComputeStringSize(6, this.Signature);
				}
				if (this.hasImgFlag)
				{
					num += CodedOutputStream.ComputeUInt32Size(7, this.ImgFlag);
				}
				if (this.hasHDImgFlag)
				{
					num += CodedOutputStream.ComputeUInt32Size(8, this.HDImgFlag);
				}
				if (this.hasCountry)
				{
					num += CodedOutputStream.ComputeStringSize(9, this.Country);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private ModBottleContact()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] modBottleContactFieldNames = ModBottleContact._modBottleContactFieldNames;
			if (this.hasUserName)
			{
				output.WriteString(1, modBottleContactFieldNames[8], this.UserName);
			}
			if (this.hasType)
			{
				output.WriteUInt32(2, modBottleContactFieldNames[7], this.Type);
			}
			if (this.hasSex)
			{
				output.WriteUInt32(3, modBottleContactFieldNames[5], this.Sex);
			}
			if (this.hasCity)
			{
				output.WriteString(4, modBottleContactFieldNames[0], this.City);
			}
			if (this.hasProvince)
			{
				output.WriteString(5, modBottleContactFieldNames[4], this.Province);
			}
			if (this.hasSignature)
			{
				output.WriteString(6, modBottleContactFieldNames[6], this.Signature);
			}
			if (this.hasImgFlag)
			{
				output.WriteUInt32(7, modBottleContactFieldNames[3], this.ImgFlag);
			}
			if (this.hasHDImgFlag)
			{
				output.WriteUInt32(8, modBottleContactFieldNames[2], this.HDImgFlag);
			}
			if (this.hasCountry)
			{
				output.WriteString(9, modBottleContactFieldNames[1], this.Country);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasUserName)
			{
				num ^= this.userName_.GetHashCode();
			}
			if (this.hasType)
			{
				num ^= this.type_.GetHashCode();
			}
			if (this.hasSex)
			{
				num ^= this.sex_.GetHashCode();
			}
			if (this.hasCity)
			{
				num ^= this.city_.GetHashCode();
			}
			if (this.hasProvince)
			{
				num ^= this.province_.GetHashCode();
			}
			if (this.hasSignature)
			{
				num ^= this.signature_.GetHashCode();
			}
			if (this.hasImgFlag)
			{
				num ^= this.imgFlag_.GetHashCode();
			}
			if (this.hasHDImgFlag)
			{
				num ^= this.hDImgFlag_.GetHashCode();
			}
			if (this.hasCountry)
			{
				num ^= this.country_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			ModBottleContact modBottleContact = value as ModBottleContact;
			return modBottleContact != null && (this.hasUserName == modBottleContact.hasUserName && (!this.hasUserName || this.userName_.Equals(modBottleContact.userName_))) && (this.hasType == modBottleContact.hasType && (!this.hasType || this.type_.Equals(modBottleContact.type_))) && (this.hasSex == modBottleContact.hasSex && (!this.hasSex || this.sex_.Equals(modBottleContact.sex_))) && (this.hasCity == modBottleContact.hasCity && (!this.hasCity || this.city_.Equals(modBottleContact.city_))) && (this.hasProvince == modBottleContact.hasProvince && (!this.hasProvince || this.province_.Equals(modBottleContact.province_))) && (this.hasSignature == modBottleContact.hasSignature && (!this.hasSignature || this.signature_.Equals(modBottleContact.signature_))) && (this.hasImgFlag == modBottleContact.hasImgFlag && (!this.hasImgFlag || this.imgFlag_.Equals(modBottleContact.imgFlag_))) && (this.hasHDImgFlag == modBottleContact.hasHDImgFlag && (!this.hasHDImgFlag || this.hDImgFlag_.Equals(modBottleContact.hDImgFlag_))) && (this.hasCountry == modBottleContact.hasCountry && (!this.hasCountry || this.country_.Equals(modBottleContact.country_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<ModBottleContact, ModBottleContact.Builder>.PrintField("UserName", this.hasUserName, this.userName_, writer);
			GeneratedMessageLite<ModBottleContact, ModBottleContact.Builder>.PrintField("Type", this.hasType, this.type_, writer);
			GeneratedMessageLite<ModBottleContact, ModBottleContact.Builder>.PrintField("Sex", this.hasSex, this.sex_, writer);
			GeneratedMessageLite<ModBottleContact, ModBottleContact.Builder>.PrintField("City", this.hasCity, this.city_, writer);
			GeneratedMessageLite<ModBottleContact, ModBottleContact.Builder>.PrintField("Province", this.hasProvince, this.province_, writer);
			GeneratedMessageLite<ModBottleContact, ModBottleContact.Builder>.PrintField("Signature", this.hasSignature, this.signature_, writer);
			GeneratedMessageLite<ModBottleContact, ModBottleContact.Builder>.PrintField("ImgFlag", this.hasImgFlag, this.imgFlag_, writer);
			GeneratedMessageLite<ModBottleContact, ModBottleContact.Builder>.PrintField("HDImgFlag", this.hasHDImgFlag, this.hDImgFlag_, writer);
			GeneratedMessageLite<ModBottleContact, ModBottleContact.Builder>.PrintField("Country", this.hasCountry, this.country_, writer);
		}
		public static ModBottleContact ParseFrom(byte[] data)
		{
			return ModBottleContact.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private ModBottleContact MakeReadOnly()
		{
			return this;
		}
		public static ModBottleContact.Builder CreateBuilder()
		{
			return new ModBottleContact.Builder();
		}
		public override ModBottleContact.Builder ToBuilder()
		{
			return ModBottleContact.CreateBuilder(this);
		}
		public override ModBottleContact.Builder CreateBuilderForType()
		{
			return new ModBottleContact.Builder();
		}
		public static ModBottleContact.Builder CreateBuilder(ModBottleContact prototype)
		{
			return new ModBottleContact.Builder(prototype);
		}
		static ModBottleContact()
		{
			ModBottleContact.defaultInstance = new ModBottleContact().MakeReadOnly();
			ModBottleContact._modBottleContactFieldNames = new string[]
			{
				"City",
				"Country",
				"HDImgFlag",
				"ImgFlag",
				"Province",
				"Sex",
				"Signature",
				"Type",
				"UserName"
			};
			ModBottleContact._modBottleContactFieldTags = new uint[]
			{
				34u,
				74u,
				64u,
				56u,
				42u,
				24u,
				50u,
				16u,
				10u
			};
			object.ReferenceEquals(micromsg.Proto.ModBottleContact.Descriptor, null);
		}
	}
}
